package com.example.dicos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.dicos.entity.Test;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface TestMapper extends BaseMapper<Test> {
    /**
     * 批量添加
     */
    Integer addTest(@Param("test") List<Test> test);

    /**
     * 批量删除
     */
    Integer batchDelete(@Param("id") List<Long> id);

    /**
     * 批量修改数据
     */
    Integer updates(@Param("tests")List<Long> tests,@Param("test")Test test);

    /**
     * 批量更新
     * @param list
     * @return
     */
    Integer updatesTwo(@Param("list") List<Test> list);
}
